package w

type WArray []interface{}

func NewWArray() *WArray {
	return &WArray{}
}

func (m *WArray) Add(value ...interface{}) {
	*m = append(*m, value...)
}

func (m WArray) Get(i int) interface{} {
	if len(m) > 0 {
		return m[i]
	}
	return nil
}

func (m *WArray) Length() int {
	return len(*m)
}

func (m *WArray) Array() []interface{} {
	return *m
}
